package org.springframework.security.config.annotation.authentication.configurers.userdetails;

import org.springframework.security.config.annotation.authentication.ProviderManagerBuilder;
import org.springframework.security.core.userdetails.UserDetailsService;

/**
 * @author Dillon
 * @date 2024/7/6
 * @slogan 致敬大师 致敬未来的你
 * @desc 设置使用数据源 数据库 内存 等作为登录认证配置
 */
public class DaoAuthenticationConfigurer<B extends ProviderManagerBuilder<B>, U extends UserDetailsService>
		extends AbstractDaoAuthenticationConfigurer<B, DaoAuthenticationConfigurer<B, U>, U> {

	/**
	 * 创建一个基于数据原的登录认证配置
	 * @param userDetailsService 自定义认证实现类
	 */
	public DaoAuthenticationConfigurer(U userDetailsService) {
		super(userDetailsService);
	}

}
